<?php
/**
 * Zend Framework (http://framework.zend.com/)
 *
 * @link      http://github.com/zendframework/ZendSkeletonApplication for the canonical source repository
 * @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
 * @license   http://framework.zend.com/license/new-bsd New BSD License
 */

namespace Application\Controller;

use Zend\Mvc\Controller\AbstractActionController;
use Zend\View\Model\ViewModel;
use Zend\Db\Adapter\Adapter;
use Zend\Db\ResultSet\ResultSet;

use Application\Model\Entity\Verificadorrequisitos;

class VisualizadorsecreController extends AbstractActionController
{
    public function indexAction()
    {
        return new ViewModel();
    }
    
    public function visualizadorsecreAction()
    {
        $this->dbAdapter=$this->getServiceLocator()->get('Zend\Db\Adapter\Adapter');
        $this->db2Adapter=$this->getServiceLocator()->get('Application\Db\AdapterTwo');
        
        $mesa_entrada = 1;
        $cedula_alumno = 4617987;

        $verif_req = new VerificadorRequisitos($mesa_entrada, $cedula_alumno, $this->dbAdapter, $this->db2Adapter);
        $verificacion = $verif_req->VerificarRequisitos();
       
        $valores=array
        (           
            "titulo"=>"Verificador de Requisitos",
            "requisito"=>$verificacion            
        );
        return new ViewModel($valores);
    }
}
